package cn.zjh.user.domain;


import cn.zjh.base.domain.BaseDomain;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.time.LocalDateTime;
import java.util.Date;

/**
 * <p>
 * 
 * </p>
 *
 * @author zjh
 * @since 2022-07-06
 */
@Data
public class User extends BaseDomain {



    private String username;
    private String phone;
    private String email;
    /**
     * 盐值
     */
    private String salt;
    /**
     * 密码，md5加密加盐
     */
    private String password;
    /**
     * 员工状态 - 1启用，0禁用
     */
    private Integer state = 1;
    private Integer age;

    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date createtime = new Date();

    private String headImg;


    private Long logininfoId;



}
